<!DOCTYPE html>
<html>
<head>
<title>{$user_login}  - 修改资料</title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
</head>
<body class="body-white" id="top">
	<include file="public@nav" />

	<div class="container tc-main">
         <div class="row">
			<div class="col-md-3">
				<include file="public@usernav" />
			</div>
			<div class="col-md-9">
			   <div class="tabs">
				   <!--<ul class="nav nav-tabs">-->
					   <!--<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list-alt"></i> 修改资料</a></li>-->
				   <!--</ul>-->
				   <div class="personal-nav"><h2>修改资料</h2></div>

				   <div class="tab-content">
					   <div class="tab-pane active" id="one"><br>
							<form class="js-ajax-form" action="{:url('user/profile/editPost')}" method="post">
                                <input type="hidden" name="uid" value="{$id}">
								<div class="form-group">
									<label for="input-user-login">用户名</label>
                                    <if condition="!empty($user_login)">
                                        <input type="text" class="form-control" id="input-user-login" name="user_login" value="{$user_login}" disabled placeholder="用户名" >
                                    <else/>
                                        <input type="text" class="form-control" id="input-user-login" name="user_login" value="" placeholder="请输入用户名" >
                                    </if>
								</div>
								<div class="form-group">
									<label for="input-user_nickname">真实姓名</label>
									<input type="text" class="form-control" id="input-user_nickname" name="realname" value="{$realname}" placeholder="请输入用户真实姓名">
								</div>
								<div class="form-group">
									<label for="input-sex">性别</label>
									<php>
										$sexs=array("0"=>"保密","1"=>"男","2"=>"女");
									</php>
									<select class="form-control" id="input-sex" name="sex">
										<foreach name="sexs" item="vo">
										<php>$sexselected=$key==$sex?"selected":"";</php>
											<option value="{$key}" {$sexselected}>{$vo}</option>
										</foreach>
									</select>
								</div>
								<div class="form-group">
									<label for="input-user_nickname">地址</label>
									<input type="text" class="form-control" name="address" value="{$address}" placeholder="请输入用户地址">
								</div>
								<div class="form-group">
									<label for="input-user_nickname">邮编</label>
									<input type="text" class="form-control" name="zipcode" value="{$zipcode}" placeholder="请输入用户邮编">
								</div>
								<!--<div class="form-group">-->
									<!--<label for="input-birthday">生日</label>-->
									<!--<if condition="$birthday gt 0">-->
										<!--<input class="form-control js-bootstrap-date" type="text" id="input-birthday" placeholder="2013-01-04" name="birthday" value="{:date('Y-m-d',$birthday)}">-->
									<!--<else/>-->
										<!--<input class="form-control js-bootstrap-date" type="text" id="input-birthday" placeholder="2013-01-04" name="birthday" value="">-->
									<!--</if>-->
								<!--</div>-->
								<!--<div class="form-group">-->
									<!--<label for="input-user_url">个人网址</label>-->
									<!--<input class="form-control" type="text" id="input-user_url" placeholder="http://thinkcmf.com" name="user_url" value="{$user_url}">-->
								<!--</div>-->
								<!--<div class="form-group">-->
									<!--<label for="input-signature">个性签名</label>-->
									<!--<textarea class="form-control" id="input-signature" placeholder="个性签名" name="signature">{$signature}</textarea>-->
								<!--</div>-->
								<div class="form-group">
									<button type="submit" class="btncss js-ajax-submit">保存</button>
								</div>
							</form>
					   </div>
				   </div>
			   </div>
			</div>
         </div>
	</div>
	<!-- /container -->
	<include file="public@footer" />

	<include file="public@scripts" />
</body>
</html>